package org.lx.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.lx.nursing.domain.NursingProjectPlan;
import org.lx.nursing.vo.NursingProjectPlanVo;

import java.util.List;

@Mapper
public interface NursingProjectPlanMapper extends BaseMapper<NursingProjectPlan> {
    NursingProjectPlan selectNursingProjectPlanById(Long id);

    List<NursingProjectPlan> selectNursingProjectPlanList(NursingProjectPlan nursingProjectPlan);

    int insertNursingProjectPlan(NursingProjectPlan nursingProjectPlan);

    int updateNursingProjectPlan(NursingProjectPlan nursingProjectPlan);

    int deleteNursingProjectPlanById(Long id);

    int deleteNursingProjectPlanByIds(Long[] ids);

    int insertBatch(@Param("projectPlans") List<NursingProjectPlan> projectPlans, @Param("planId") Long planId);

    List<NursingProjectPlanVo> getProjectListByPlanId(@Param("planId") Long planId);

    void deleteByPlanId(@Param("planId") Long planId);

    void batchDeleteByPlanIds(@Param("ids") List<Long> ids);
}
